package org.jsbd.boss.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.INewTaskExecutionDAO;
import org.jsbd.boss.domian.channel.NewTaskExecutionDTO;
import org.jsbd.boss.domian.channel.NewTaskExecutionVO;
import org.jsbd.boss.service.INewTaskExecutionService;
import org.springframework.stereotype.Service;

@Service("newTaskExecutionService")
public class NewTaskExecutionServiceImpl implements INewTaskExecutionService {
	
	@Resource
	private INewTaskExecutionDAO newTaskExecutionDAO;
	
	@Override
	public Map<String, Object> findNewTaskExecutionWithPage(DataGridModel page, NewTaskExecutionVO nteVO) {
		return newTaskExecutionDAO.findNewTaskExecutionWithPage(page, nteVO);
	}
	
	@Override
	public List<NewTaskExecutionDTO> findByMarkAndDay(String mark, String day) {
		return newTaskExecutionDAO.findByMarkAndDay(mark, day);
	}

	@Override
	public Map<String, Object> findNewTaskExecutionMarkWithPage(DataGridModel page, NewTaskExecutionVO nteVO) {
		return newTaskExecutionDAO.findNewTaskExecutionMarkWithPage(page, nteVO);
	}

	@Override
	public List<NewTaskExecutionDTO> findByLoginTypeAndDay(String loginType, String day) {
		return newTaskExecutionDAO.findByLoginTypeAndDay(loginType, day);
	}

}
